package com._520it.crm.service.impl;

import com._520it.crm.domain.BankArea;
import com._520it.crm.mapper.BankAreaMapper;
import com._520it.crm.service.IBankAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BankAreaServiceImpl implements IBankAreaService {

    @Autowired
    private BankAreaMapper bankAreaMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return bankAreaMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(BankArea record) {
        return bankAreaMapper.insert(record);
    }

    @Override
    public BankArea selectByPrimaryKey(Long id) {
        return bankAreaMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BankArea> selectAll() {
        return bankAreaMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(BankArea record) {
        return bankAreaMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<BankArea> queryTree() {
        return bankAreaMapper.queryTree();
    }

    @Override
    public List<BankArea> queryChildrenByParentId(Long id) {
        return bankAreaMapper.queryChildrenByParentId(id);
    }
}
